package com.fyyg.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.fyyg.dal.TSysUserMapper;
import com.fyyg.interfaces.TSysUserService;
import com.fyyg.model.TSysUser;

@Service("TSysUserService")
public class TSysUserServerImpl implements TSysUserService{

	
	@Resource private TSysUserMapper userMapper;
	
	
	@Override
	public int deleteByPrimaryKey(Integer userId) {
		return userMapper.deleteByPrimaryKey(userId);
	}

	@Override
	public int insert(TSysUser record) {
		return userMapper.insert(record);
	}

	@Override
	public TSysUser selectByPrimaryKey(Integer userId) {
		return userMapper.selectByPrimaryKey(userId);
	}

	@Override
	public List<TSysUser> selectAll() {
		return userMapper.selectAll();
	}

	@Override
	public int updateByPrimaryKey(TSysUser record) {
		return userMapper.updateByPrimaryKey(record);
	}

	@Override
	public TSysUser selectByPrimaryUserName(String userName) {
		return userMapper.selectByPrimaryUserName(userName);
	}

	@Override
	public TSysUser selectByPrimaryUserMobile(String mobile) {
		return userMapper.selectByPrimaryUserMobile(mobile);
	}

}
